package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 *
 * <desc>
 *      门禁设备归属信息表。
 * </desc>
 *
 * @createDate 2017/09/20
 */
@ItlTables("device_entrance_bridge_info")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper=true)
public class DeviceEntranceBridgeInfoPO extends BasePO implements Serializable {

    @ItlField(value = "device_unique",logicKey = "key",notNull = "false")
    private String deviceUnique;

    @ItlField("build_id")
    private String buildId;         //楼栋ID

    @ItlField("unit_id")
    private String unitId;          //单元ID

    @ItlField("project_id")
    private String projectId;       //项目编号，由8位数字构成,00000001~99999999.

    public DeviceEntranceBridgeInfoPO(String deviceUnique, String projectId, String buildId, String unitId) {
        this.deviceUnique = deviceUnique;
        this.buildId = buildId;
        this.unitId = unitId;
        this.projectId = projectId;
    }
}